Method of endoscopic procedure